/**
 * 作者: wgx
 * 日期: 2024-11-28 17:06:14
 * 备注: 老虎机抽奖
 */
package com.motu.monstercity.server.game.commondata.draw;

import io.vertx.core.json.JsonObject;

public class TigerDrawModel {
    protected int id; // id
    protected String reward; // 奖励
    protected int rate; // 真实概率

    public TigerDrawModel() {
    }

    public TigerDrawModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        reward = obj.containsKey("reward") ? obj.getString("reward") : "";
        rate = obj.containsKey("rate") ? obj.getInteger("rate") : 0;
    }

    public int getId() {
        return id;
    }

    public String getReward() {
        return reward;
    }

    public int getRate() {
        return rate;
    }

}
